<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>管理系统</title>
    <link rel="stylesheet" href="/css/layui.css">
</head>
<body class="layui-layout-body">
<form class="layui-form" action="">
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-inline">
            <input th:value="${user.username}" id="username" type="text" name="username" required  lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">密码框</label>
        <div class="layui-input-inline">
            <input th:value="${user.password}" id="password" type="text" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-inline">
            <input th:value="${user.name}" type="text" id="name" name="name"  placeholder="请输入姓名" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">身份</label>
        <div class="layui-input-inline">
            <select th:value="${user.role}" id="role" name="role">
                <option value="1" th:selected="${user.role ==1}">普通用户</option>
                <option value="2" th:selected="${user.role ==2}">管理员</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">身份证</label>
        <div class="layui-input-inline">
            <input th:value="${user.identityNum}" type="text" id="identityNum" name="identityNum"  placeholder="请输入身份证号码" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机</label>
        <div class="layui-input-inline">
            <input th:value="${user.phone}" type="text" name="phone" id="phone"  placeholder="请输入手机号码" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">生日</label>
        <div class="layui-input-inline">
            <input th:value="${user.birthday}" type="text" name="birthday" id="birthday" placeholder="（YYYY-MM-DD）" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">地址</label>
        <div class="layui-input-inline">
            <input th:value="${user.address}" type="text" name="address" id="address" placeholder="请输入地址" autocomplete="off" class="layui-input">
        </div>
    </div>
    <input type="hidden" th:value="${user.id}" name="id" id="id">
</form>

<script src="/layui.js"></script>
<script src="/js/jquery-3.3.1.js"></script>
</body>